﻿using System;
using System.Data;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using AnyOffice.Components;
using AnyOffice.DAL;

namespace AnyOffice.general.meeting.room
{
    public partial class index : ModulePage
    {


        protected void Page_Load(object sender, EventArgs e)
        {
            DataTable table = new MeetingRoomDao().SelectAll(base.Conn);
            if (table.Rows.Count > 0)
            {
                this.rptRoom.DataSource = table;
                this.rptRoom.DataBind();
                this.pnlNav.Visible = false;
                this.litRoomCount.Text = table.Rows.Count.ToString();
            }
            else
            {
                this.litMessage.Text = base.ShowMessage("无定义的会议室");
            }
        }

 

    }
}
